Skip to content

Add trailing commas (closes #37)#46

Merged
NathanLovato merged 3 commits intoGDQuest:mainfrom
shadr:add-trailing-commas
Sep 19, 2025
Merged

Add trailing commas (closes #37)#46
NathanLovato merged 3 commits intoGDQuest:mainfrom
shadr:add-trailing-commas

Conversation

@shadr
Copy link
Copy Markdown
Contributor

@shadr shadr commented Sep 19, 2025

This PR adds trailing commas to arrays, dictionaries, enums, function definitions and functions calls. (closes #37)

Trailing commas in function definitions looks fine, but not sure if they are in function calls. I looked through style guide and didn't find anything regarding commas in func definitions and calls.

@NathanLovato
Copy link
Copy Markdown
Contributor

It's great, thanks, and good call adding them to be anywhere where the GDScript syntax allows them, even if the style guide doesn't specify it. When something is not specified, we can look for consistency with rules/other cases that are specified.

@NathanLovato NathanLovato merged commit 4e3830d into GDQuest:main Sep 19, 2025
@shadr shadr deleted the add-trailing-commas branch September 25, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatter should add trailing commas

2 participants